# foo = lambda x: x + 1
#
# print(foo)
# print(foo(12))


# 闭包 +
def set_func(func):
    def call_func():
        print("权限验证")
        func()

    return call_func


@set_func
def test1():
    print("-------test1------------")


print(globals())


class B():
    name = "张三"
    age = "12"

    def __init__(self):
        pass


b = B()

b1 = b.__class__()

b1 = None

b1 = b.__class__

b2 = b1()

print(b2)

# print(b.__class__.__class__)

# print(type(b))

# ret = set_func(test1)
# print(ret())
#
# test1()
#
# print(globals())
# print(type(3))